package top.lt.lt_ssm.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class ordersInfo {
	
	
	 public ordersInfo() {
		super();
	}

	public ordersInfo(int oid, Integer orderId, String uname, String pname, String addressid, Double price,
			Date createTime, Date endTime, String state) {
		super();
		this.oid = oid;
		this.orderId = orderId;
		this.uname = uname;
		this.pname = pname;
		this.addressid = addressid;
		this.price = price;
		this.createTime = createTime;
		this.endTime = endTime;
		this.state = state;
	}

	private int oid;

	    private Integer orderId;

	    private String uname;

	    private String pname;

	    private String addressid;

	    private Double price;

	    private Date createTime;

	    private Date endTime;

	    private String state;

		public int getOid() {
			return oid;
		}

		public void setOid(int oid) {
			this.oid = oid;
		}

		public Integer getOrderId() {
			return orderId;
		}

		public void setOrderId(Integer orderId) {
			this.orderId = orderId;
		}

		public String getUname() {
			return uname;
		}

		public void setUname(String uname) {
			this.uname = uname;
		}

		public String getPname() {
			return pname;
		}

		public void setPname(String pname) {
			this.pname = pname;
		}

		public String getAddressid() {
			return addressid;
		}

		public void setAddressid(String addressid) {
			this.addressid = addressid;
		}

		public Double getPrice() {
			return price;
		}

		public void setPrice(Double price) {
			this.price = price;
		}
		@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
		public Date getCreateTime() {
			return createTime;
		}
		@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
		public Date getEndTime() {
			return endTime;
		}
		@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
		public void setEndTime(Date endTime) {
			this.endTime = endTime;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}
	    
    
}
